package com.ibeeking.found.file.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class SourceAddParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = BaseValidationGroup.Update.class)
    private Long id;

    /**
     * 所属素材组id
     */
    @NotNull(message = "所属素材组id不能为空",groups = BaseValidationGroup.Insert.class)
    private Long parentId;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * -1商户 -2商管
     */
    private Integer merchantsBusiness;

    /**
     * 素材类型，1-图片，2-视频
     */
    @NotNull(message = "素材类型不能为空",groups = BaseValidationGroup.Insert.class)
    private Integer type;

    @NotNull(message = "素材集合不能为空",groups = BaseValidationGroup.Insert.class)
    private List<SourceSetParam> sources;

    /**
     * 创建人
     */
    private Long createBy;

    /**
     * 更新人
     */
    private Long modifyBy;

}
